import http from ".."

enum Api {
    seoInfoUrl = '/api/config/info/seo/',
    seoSetUrl = '/api/config/set/seo/',
    siteInfoUrl = '/api/config/info/site/',
    siteSetUrl = '/api/config/set/site/',
    qiniuTokenUrl = '/api/qiniu_token/admin/'
}

// 获取seo信息
export async function getSeoApi() {
    return await http.get(Api.seoInfoUrl)
}

// 修改seo信息
export async function postSeoApi(parms: any) {
    return await http.post(Api.seoSetUrl, parms)
}

// 获取站点信息
export async function getSiteApi() {
    return await http.get(Api.siteInfoUrl)
}

// 修改站点信息
export async function postSiteApi(parms: any) {
    return await http.post(Api.siteSetUrl, parms)
}

// 获取七牛存储token
export async function getQiniuTokenApi() {
    return await http.get(Api.qiniuTokenUrl)
}
